package com.whyx.project.openapi.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther: xin
 * @Date: 2018/8/6 14:20
 * @Description:配置文件映射对象
 */
@Component
@PropertySource("classpath:bus.properties")
@ConfigurationProperties(prefix="obj")
public class BusProperties {
    //api接口域名
    private String apiUrl;
    //广告闪屏类型
    private List<String> advertisingFlashScreenType = new ArrayList<String>();
    //订单付款方式
    private Map<String, String> orderPayWay = new HashMap<>();
    //订单消费方式
    private List<String> orderTravelType = new ArrayList<String>();
    //订单状态orderPayWay
    private List<String> orderStatus = new ArrayList<String>();
    //订单异常类型
    private List<String> orderExpType = new ArrayList<String>();
    //常见问题类型
    private List<String> commonProblemType = new ArrayList<String>();
    //可用线路-运营状态
    private List<String> lineStatu = new ArrayList<String>();
    //出行类型：1： 公交，2： 地铁
    private List<String> listTypeRide = new ArrayList<String>();
    //解析状态 0：表示初始状态 1：表示解析通过，2: 表示解析失败
    private List<String> listAnalyzeStatus = new ArrayList<String>();

    public List<String> getlistTypeRide() {return listTypeRide; }
    public void setlistTypeRide(List<String> listTypeRide) {this.listTypeRide = listTypeRide;  }

    public List<String> getlistAnalyzeStatus() {
        return listAnalyzeStatus;
    }
    public void setlistAnalyzeStatus(List<String> listAnalyzeStatus) {
        this.listAnalyzeStatus = listAnalyzeStatus;
    }

    public List<String> getAdvertisingFlashScreenType() {
        return advertisingFlashScreenType;
    }

    public void setAdvertisingFlashScreenType(List<String> advertisingFlashScreenType) {
        this.advertisingFlashScreenType = advertisingFlashScreenType;
    }

    public List<String> getOrderTravelType() {
        return orderTravelType;
    }

    public void setOrderTravelType(List<String> orderTravelType) {
        this.orderTravelType = orderTravelType;
    }

    public List<String> getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(List<String> orderStatus) {
        this.orderStatus = orderStatus;
    }

    public List<String> getOrderExpType() {
        return orderExpType;
    }

    public void setOrderExpType(List<String> orderExpType) {
        this.orderExpType = orderExpType;
    }

    public List<String> getCommonProblemType() {
        return commonProblemType;
    }

    public void setCommonProblemType(List<String> commonProblemType) {
        this.commonProblemType = commonProblemType;
    }

    public Map<String, String> getOrderPayWay() {
        return orderPayWay;
    }

    public void setOrderPayWay(Map<String, String> orderPayWay) {
        this.orderPayWay = orderPayWay;
    }

    public List<String> getLineStatu() {
        return lineStatu;
    }

    public void setLineStatu(List<String> lineStatu) {
        this.lineStatu = lineStatu;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }
}
